package com.we823.project.model.repo;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.we823.project.model.BaseModelWithDate;

@Entity
@Table(name="repo_category")
@NamedQuery(name="CategoryModel.findAll", query="SELECT c FROM CategoryModel c")
public class CategoryModel extends BaseModelWithDate {
	
	private static final long serialVersionUID = 1L;

	private String name;
	private String code;

	private String editor;

	private String inputer;

	private int parentid;

	public CategoryModel() {
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getEditor() {
		return this.editor;
	}

	public void setEditor(String editor) {
		this.editor = editor;
	}

	public String getInputer() {
		return this.inputer;
	}

	public void setInputer(String inputer) {
		this.inputer = inputer;
	}

	public int getParentid() {
		return this.parentid;
	}

	public void setParentid(int parentid) {
		this.parentid = parentid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}